import service from "@/utils/fetch";
const post = {
  //查询属性分页
  skuAttribute_list(params) {
    return service({
      method: "get",
      params,
      url: "/api/skuAttribute/",
    });
  },

  // 新增属性
  skuAttribute_add(params) {
    return service({
      method: "post",
      data: params,
      url: "/api/skuAttribute/",
    });
  },

  // 编辑属性
  skuAttribute_edit(params) {
    return service({
      method: "put",
      data: params,
      url: "/api/skuAttribute/",
    });
  },

  // 删除属性
  skuAttribute_delete(ids) {
    return service({
      method: "delete",
      data: ids,
      url: "/api/skuAttribute/",
    });
  },


  // 查询商品属性值表
  skuAttributeDetail_list(params) {
    return service({
      method: "get",
      params,
      url: "/api/skuAttributeDetail/",
    });
  },

  // 新增商品属性值表
  skuAttributeDetail_add(params) {
    return service({
      method: "post",
      data: params,
      url: "/api/skuAttributeDetail/",
    });
  },    

  // 编辑商品属性值表
  skuAttributeDetail_edit(params) {
    return service({
      method: "put",
      data: params,
      url: "/api/skuAttributeDetail/",
    });
  },

  // 删除商品属性值表
  skuAttributeDetail_delete(ids) {
    return service({
      method: "delete",
      data: ids,
      url: "/api/skuAttributeDetail/",
    });
  },
};

export default post;
